Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic DML support #268

Merged
merged 5 commits into from
Apr 18, 2024
Merged

Add basic DML support #268

merged 5 commits into from
Apr 18, 2024

Conversation

PatriceVignola
Copy link
Contributor

This adds basic DML support (although not performant). The next step will be to implement DML graph functionality.

This currently requires private local ORT and DML builds to run, but official builds are coming soon.

Copy link
Member

@RyanUnderhill RyanUnderhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, the only part I had to think about for a sec were these:
auto& allocator = model_.device_type_ == DeviceType::DML ? model_.allocator_cpu_ : *model_.allocator_device_;

I initially thought it should be checking for cuda also, but the logic is really "DML uses CPU for this codepath", so maybe put a comment?

@wangyems
Copy link
Contributor

LGTM. Please fix the conflicts

@PatriceVignola PatriceVignola merged commit e2e2f9b into main Apr 18, 2024
11 checks passed
@PatriceVignola PatriceVignola deleted the user/pavignol/add-dml-support branch April 18, 2024 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants